package com.example.design.facade;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileReader {
	public String Read(String fileName){
		FileInputStream fs = null;
		StringBuilder sb = new StringBuilder();
		try {
			fs = new FileInputStream(fileName);
			int byteArray;
			while((byteArray = fs.read()) != -1) {
				sb.append((char)byteArray);
			}
			fs.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return sb.toString();
	}
}
